//
//  CLLinkedReverse.h
//  Charles
//
//  Created by Charles on 2020/3/16.
//  Copyright © 2020 charles. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// 定义链表结点
struct Node{
    int data;
    struct Node *next;
};

/// 链表反转
@interface CLLinkedReverse : NSObject
// 链表反转方法
struct Node *reverseList(struct Node *head);
// 构造链表
struct Node *constructList(void);
// 打印链表
void printList(struct Node *head);

@end

NS_ASSUME_NONNULL_END
